package com.xmtlxx.sacw.domain;

import com.xmtlxx.common.core.domain.BaseSacwEntity;
import com.xmtlxx.system.domain.SysOss;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 评估信息 s_evaluate_info
 *
 * @author hergreen
 * @date 2024/07/15 10:30
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("s_evaluate_info")
@NoArgsConstructor
public class EvaluateInfo extends BaseSacwEntity {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 评估记录ID
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 评估编号
     */
    private String evaluateNo;

    /**
     * 评估机构
     */
    private String evaluateAgency;

    /**
     * 评估地点
     */
    private String evaluatePlace;

    /**
     * 是否到场
     */
    private Integer evaluateIsPresent;

    /**
     * 评估时间
     */
    private Date evaluateTime;

    /**
     * 评估财物
     */
    @TableField(exist = false)
    List<EvaluatePro> evaluateProList;

    /**
     * 评估附件
     */
    @TableField(exist = false)
    List<SysOss> oss;

    public EvaluateInfo(String id, String delFlag) {
        super(delFlag);
        this.id = id;
    }

}
